<template>
  <div>
    <el-form-item v-if="label" :label="label" v-bind="$attrs">
      <slot></slot>
    </el-form-item>
    <slot v-else></slot>
  </div>
</template>
<script>
export default {
  props: {
    label: String,
  },
  data() {
    return {};
  },
};
</script>
